package org.cloud.myRuleConfig;


import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RetryRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

public class RuleConfig03 {
    @Bean
    public IRule getIRuleRetry() {
        // 重试
        return new RetryRule();
    }
}
